/*
package cn.zs.middleware.config.jetcache;

import com.alicp.jetcache.support.AbstractValueDecoder;

import com.fasterxml.jackson.databind.ObjectMapper;






public class JacksonValueDecoder extends AbstractValueDecoder {

    private static final ObjectMapper objectMapper = new ObjectMapper();

    public JacksonValueDecoder() {
        super(true); // 传true，表示使用identity number
        System.out.println("JacksonValueDncoder created!");
    }

    @Override
    protected Object doApply(byte[] bytes) {
        if (bytes == null || bytes.length == 0) {
            return null;
        }
        try {
            // 这里默认反序列化为Object，实际使用时建议结合cacheType参数做类型转换
            return objectMapper.readValue(bytes, Object.class);
        } catch (Exception e) {
            throw new RuntimeException("Jackson反序列化失败", e);
        }
    }
}




*/
